/**
 * 咖啡类型
 */
export interface coffeeType {
  id: number;
  name: string;
  price: number;
}

/**
 * 咖啡选择类型
 */
export interface coffeeSelectionType {
  showCoffeeSelection?: boolean;
  count: number;
  size: "middle" | "big";
  iceLevel: "ice" | "lessIce" | "noIce";
  sugerLevel: "normalSuger" | "lessSuger" | "halfSuger" | "noSuger";
}

/**
 * 一份订单类型
 */
export interface orderType {
  count: number;
  id: number;
  name: string;
  price: number;
  size: coffeeSelectionType["size"];
  iceLevel: coffeeSelectionType["iceLevel"];
  sugerLevel: coffeeSelectionType["sugerLevel"];
}

/**
 * 咖啡订单类型
 */
export interface coffeeOrderType {
  index: number;
  shopCar: {
    orderIndex: number;
    time: string;
    order: orderType[];
  };
  orderList: coffeeOrderType["shopCar"][];
  allOrder: coffeeOrderType["shopCar"][];
}
